var http = require('http'),
    url = require('url'),
    querystring = require('querystring');

// Custom module
var viewer = require('./view');

function route(req, res, path, postData) {
  //var query = url.parse(req.url, true);
  
  if(path === "/") {
    path = "/index.html";
  }
  viewer.view(req, res, path, postData);
}

function isEmpty(map) {
  for(var key in map) {
    if(map.hasOwnProperty(key)) {
      return false;
    }
  }
  return true;
}

exports.route = route;